﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace WfTimedExecService
{
    public class Read_Config
    {
        #region 获取定时访问的URL
        /// <summary>
        /// 获取定时访问的URL
        /// </summary>
        /// <returns>定时访问的URL</returns>
        public static string Config_RequestUrl()
        {
            string RequestUrl = ConfigurationManager.AppSettings["RequestUrl"].ToString();

            return RequestUrl;
        }
        #endregion

        #region 获取定时执行时间
        /// <summary>
        /// 获取定时执行时间
        /// </summary>
        /// <returns>定时执行时间[单位：分钟]</returns>
        public static int Config_ExecTime()
        {
            int ExecTime = Convert.ToInt32(ConfigurationManager.AppSettings["ExecTime"].ToString());

            return ExecTime;
        }
        #endregion
    }
}
